package ru.evga.inse.server.gwt.admin.client.menu;

import ru.evga.inse.server.gwt.admin.client.IAdminAppFactory;

import com.google.gwt.activity.shared.Activity;
import com.google.gwt.activity.shared.ActivityMapper;
import com.google.gwt.place.shared.Place;


public class MenuActivityMapper
    implements ActivityMapper
{
    private IAdminAppFactory factory;
    private final MenuActivity menuActivity;

    public MenuActivityMapper(IAdminAppFactory factory)
    {
        this.factory = factory;
        menuActivity = new MenuActivity(factory);
    }

    public Activity getActivity(Place place)
    {
        return menuActivity;
    }
}
